package com.garfield1.springboottest.entity;

import lombok.Data;


import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Data
public class Book {
    //Id指定主键
    @Id
    private Integer id;
    private String book_name;
    private String book_author;

}
